/*
package com.ebid.test;


import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;

public class JsonUtils {



    public static Map<String, MapVarModel> jsonToMap(String jsonData) {
        Map<String, MapVarModel> map = new HashMap<>();
        map.putAll(handleObj(JSONObject.fromObject(jsonData)));
        return map;
    }
    private static Map<String, MapVarModel> handleArr(JSONArray arrObj) {
        if(arrObj==null || arrObj.size()==0) {
            return null;
        }
        Map<String, MapVarModel> map = new HashMap<>();
        for(int i=0;i<arrObj.size();i++){
            map.putAll(handleObj(arrObj.getJSONObject(i)));
        }
        return map;
    }
    @SuppressWarnings("unchecked")
    private static Map<String, MapVarModel> handleObj(JSONObject jsonObject) {
        Map<String, MapVarModel> map = new HashMap<>();
        Iterator<String> it = jsonObject.keys();
        while(it.hasNext()){
            String key = it.next();
            Object obj = jsonObject.get(key);
            MapVarModel model = new MapVarModel();
            if (obj instanceof String){
                model.setValType("1");
                model.setStrVal((String)obj);
            } else if (obj instanceof Integer){
                model.setValType("2");
                model.setIntVal((Integer)obj);
            } else if (obj instanceof Boolean){
                model.setValType("3");
                model.setBooVal((boolean)obj);
            } else if(obj instanceof JSONArray) {
                model.setValType("4");
                model.setMap(handleArr((JSONArray)obj));
            }else if(obj instanceof JSONObject){
                model.setValType("4");
                model.setMap(handleObj((JSONObject)obj));
            }else if(obj instanceof Long){
                model.setValType("5");
                model.setLonVal((Long)obj);
            }else if(obj instanceof JSONNull) {
                model.setValType("1");
                model.setStrVal(null);
            }else {
                model.setValType("1");
                model.setStrVal(obj==null?"":(String)obj);
            }
            map.put(key, model);
        }
        return map;
    }
    public static String HandleJsonUtils(String jsonData, Map<String, MapVarModel> map) {
        // TODO Auto-generated method stub
        return null;
    }

    public static void main(String[] args) {
        String json = "{\r\n" +
                "	\"TENDER_PROJECT_CODE\": \"M1100000015013191001\",\r\n" +
                "	\"BID_SECTION_CODES\": [{\r\n" +
                "		\"BID_SECTION_CODE\": \"M1100000015013191001001\"\r\n" +
                "	}],\r\n" +
                "\r\n" +
                "	\"SECTIONS_WIN_CANDIDATES\": [{\r\n" +
                "			\"BID_SECTION_CODE\": \"M1100000015013191001001\",\r\n" +
                "			\"WIN_CANDIDATES\": [{\r\n" +
                "					\"WIN_CANDIDATE_CODE_TYPE\": \"97\",\r\n" +
                "					\"WIN_CANDIDATE_CODE\": \"tongyi6568565656\",\r\n" +
                "					\"WIN_CANDIDATE_NAME\": \"lwj测试专用变更\",\r\n" +
                "					\"WIN_CANDIDATE_ORDER\": \"2\",\r\n" +
                "					\"BID_RESULT\": {\r\n" +
                "						\"PRICE\": {\r\n" +
                "							\"BID_PRICE\": \"21.00\",\r\n" +
                "							\"PRICE_CURRENCY\": \"23\"\r\n" +
                "						}\r\n" +
                "					},\r\n" +
                "					\"QUALITY\": \"合格\",\r\n" +
                "					\"EVALUATION_STATUS\": \"是\",\r\n" +
                "					\"WIN_CANDIDATE_QUALIFICATION\": \"合格\",\r\n" +
                "					\"TIME_LIMIT\": \"0\",\r\n" +
                "					\"PM_NAME\": \"dc\",\r\n" +
                "					\"PM_CODE\": \"17611260300\",\r\n" +
                "					\"PM_CERTIFICATES\": \"142602199202031234\"\r\n" +
                "				}\r\n" +
                "\r\n" +
                "			]\r\n" +
                "		}\r\n" +
                "\r\n" +
                "	]\r\n" +
                "\r\n" +
                "}";

        Map<String, MapVarModel> map = jsonToMap(json);

        System.out.println(map);

    }
}
*/
